package com.wl.common.system.support.dto;


import com.wl.common.core.web.dto.AbstractBaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author: wanglin
 * @date: 2023-05-30 周二
 * @Version: 1.0
 * @Description:
 */
@Data
@Schema(description = "用户信息")
public class SysUserDTO extends AbstractBaseDTO {
    @NotBlank(message = "用户账号不能为空")
    @Size(max = 20, message = "用户账号长度不能超过20个字符")
    @Schema(description = "用户账号")
    private String userId;

    @NotBlank(message = "姓名不能为空")
    @Size(max = 20, message = "姓名长度不能超过20个字符")
    @Schema(description = "姓名")
    private String name;

    //    @NotBlank(message = "密码不能为空")
    @Size(max = 20, message = "密码长度不能超过20个字符")
    @Schema(description = "密码")
    private String password;

    @Schema(description = "角色ids")
    private List<String> roleIds;

    @Schema(description = "状态")
    private Integer status;

    private String description;
}
